package File;

import java.io.File;


public class ListFilesDemo {
    public static void main(String[] args) {
        /*
        File file = new File("./a/c/d");
        if (file.isDirectory()){
            System.out.println("是个目录，并且已存在");
        }else {
            System.out.println("不是目录，或不存在");
        }
         */

        File file = new File(".");
        if (file.isDirectory()){
            File[] sub = file.listFiles();
            System.out.println(sub.length);
        for (File subs :sub){

           }
        }
    }
}
